package com.ruoyi.blogs.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论对象 bs_comment
 *
 * @author ruoyi
 * @date 2022-11-05
 */
@ApiModel(value = "BsComment", description = "评论实体")
public class BsComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @ApiModelProperty("id")
    private Long id;

    /** 用户id */
    @ApiModelProperty("用户id")
    @Excel(name = "用户id")
    private Long userId;

    /** 用户名称 */
    @ApiModelProperty("用户名称")
    @Excel(name = "用户名称")
    private String userName;

    /** 笔记id */
    @ApiModelProperty(value = "笔记id", required = true)
    @Excel(name = "笔记id")
    private String noteId;

    /** 评论的上级id */
    @ApiModelProperty(value = "评论的上级id", required = true)
    @Excel(name = "评论的上级id")
    private Long parentId;

    /** 内容 */
    @ApiModelProperty(value = "内容", required = true)
    @Excel(name = "内容")
    private String content;

    /** 点赞数 */
    @ApiModelProperty("点赞数")
    @Excel(name = "点赞数")
    private Long likeNum;

    /** 点踩数 */
    @ApiModelProperty("点踩数")
    @Excel(name = "点踩数")
    private Long belittleNum;

    /** 被回复的用户id */
    @ApiModelProperty(value = "被回复的用户id")
    @Excel(name = "被回复的用户id")
    private Long replyUserId;

    public Long getReplyUserId() {
        return replyUserId;
    }

    public void setReplyUserId(Long replyUserId) {
        this.replyUserId = replyUserId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setNoteId(String noteId)
    {
        this.noteId = noteId;
    }

    public String getNoteId()
    {
        return noteId;
    }
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setLikeNum(Long likeNum)
    {
        this.likeNum = likeNum;
    }

    public Long getLikeNum()
    {
        return likeNum;
    }
    public void setBelittleNum(Long belittleNum)
    {
        this.belittleNum = belittleNum;
    }

    public Long getBelittleNum()
    {
        return belittleNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("noteId", getNoteId())
                .append("parentId", getParentId())
                .append("content", getContent())
                .append("createTime", getCreateTime())
                .append("likeNum", getLikeNum())
                .append("belittleNum", getBelittleNum())
                .toString();
    }
}